<?php
// +----------------------------------------------------------------------
// | Author: weifashi <605403358@qq.com>
// +----------------------------------------------------------------------	
use think\facade\Route;

//---------------------------
//---------组件路由--------
//---------------------------
Route::group('core', function () {
	Route::group('search', function () {
		Route::any('getOption' ,'\app\admin\actions\Controls@getSearchConfig')->name('获取配置');
	});
	Route::group('grid', function () {
	    Route::any('getOption' ,'\app\admin\actions\Controls@getGridConfig')->name('获取配置');
	    Route::any('getData', 'app\admin\actions\Controls@getGridData')->name("获取数据");
	    Route::any('deleteData', '\app\admin\actions\Controls@deleteGridData')->name("删除数据");
	    Route::any('adjustSort', '\app\admin\actions\Controls@adjustSort')->name("调整排序");
	    Route::any('exportExcel', '\app\admin\actions\Controls@exportExcel')->name("导出数据");
	    Route::any('updateField', '\app\admin\actions\Controls@updateField')->name("更新字段值");
	    Route::any('updateRow', '\app\admin\actions\Controls@updateRow')->name("更新字段值");
	});
	Route::group('form', function () {
		Route::any('getOption' ,'\app\admin\actions\Controls@getFormConfig')->name('获取配置');
		Route::any('saveData' ,'\app\admin\actions\Controls@saveFormData')->name('保存数据');
	});
})->middleware([ app\admin\middleware\CheckLogin::class ]);